# -*- coding:utf-8 -*-

# -*- coding:utf-8 -*-


from django_filters.filterset import FilterSet

from ..models.loginLog import SystemUserLoginInfo


class SystemUserLoginInfoFilter(FilterSet):
    class Meta:
        model = SystemUserLoginInfo
        fields = {
            "username": ["contains"],
            "browser": ["contains"],
            "ipaddr": ["contains"],
            "device": ["contains"],
            "loginLocation": ["contains"],
            "os": ["contains"],
            "login_type": ["contains"],
        }

